package service.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.WinnerDao;
import po.Winner;
import service.WinnerService;


@Service("winnerService")
@Transactional
public class WinnerServiceImpl implements WinnerService {
	@Autowired
	private WinnerDao winnerDao;

	@Override
	public List<Winner> getWinnerList() {
		return winnerDao.getList();
	}

	@Override
	public int deleteWinner(Integer winnerid) {
		return winnerDao.delWinner(winnerid);
	}

	@Override
	public int addWinner(Winner winner) {
		return winnerDao.addWinner(winner);
	}

	@Override
	public Winner getWinnerId(Integer id) {
		return winnerDao.getWinnerId(id);
	}

	@Override
	public int updateWinner(Winner winner) {
		return winnerDao.updateWinner(winner);
	}

	@Override
	public List<Winner> findList(String data) {
		return winnerDao.findList(data);
	}


}
